package com.neuedu.shop.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.Version;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author BL
 * @since 2021-04-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_order")
public class Order extends Model<Order> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 用户id(该订单属于哪个用户)
     */
    private Integer orderUserid;
    /**
     * 使用订单号生成策略
     */
    private String orderId;
    /**
     * 订单送货地址
     */
    private String orderAddress;
    /**
     * 下单时间
     */
    private Date orderCreateTime;
    /**
     * 订单更新时间
     */
    private Date orderUpdateTime;
    /**
     * 订单状态(0: 未发货 1:已发货 2: 已确认收货3:已评价)
     */
    private Integer orderStatus;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
